﻿@{
    ViewBag.Title = "Form";
    Layout = "~/Views/Shared/_ManufactureList.cshtml";
}
<style type="text/css">
    .ui-jqgrid .table-bordered th {
        height: 52px !important;
    }
    .btn-group{
        padding:0 10px 0 0;
    }

    .cate_item {
        display: inline-block;
    }

    .display_none {
        display: none;
    }

    #selParts .frozen-bdiv, #gbox_gridList3 .frozen-bdiv {
        top: 53px !important;
    }

    .grid_list_2_c {
        overflow: hidden;
    }

        .grid_list_2_c .frozen-bdiv {
            top: 52px !important;
        }

        .grid_list_2_c .frozen-div {
            height: 52px !important;
        }

        .grid_list_2_c .ui-jqgrid-hdiv {
            width: 1900px !important;
            background-color: transparent !important;
        }

        .grid_list_2_c .ui-jqgrid-bdiv {
            width: 1900px !important;
            background-color: transparent !important;
        }

        .grid_list_2_c .ui-jqgrid-btable {
            background-color: #fff !important;
        }

    .tool_c {
        padding: 10px 0;
    }

        .btn-group:last-child a.btn:first-child {
            margin: 0 0.5em 0 0 !important;
        }
</style>
<script>
    var defaultDate = "";
    $(function () {
        initControl();
        gridList();
        initSelect();
    });

    var initSelect = function () {
        var cates = "cp1,cp2,cp3,cp4,cp5,cp6".split(",");

        var parts = "cp1,cp2,cp7".split(",");

        var o = { cates: cates, parts: parts };

        $("[name=ra]").on("click", function () {
            $(".cp").hide(0);

            var arr = o[$(this).val()];

            arr.forEach(function (cur) {
                $(".{0}".format(cur)).fadeIn(100);
            });
        });

        $("[name=ra]:first").trigger("click");
    }

    function initControl() {
        var myLayout = $('#layout').layout({ resizeable: false });
        $('select').bindSelect();
        //供货单位名称
        $("#FProCompanyNO").bindSelect({
            url: "/BaseData/ZSJ_B1_GH_SI/GetGridJson?isProduct=1",
            id: "UnitNO",
            text: "UnitNOShortName"
        });
        //制造单位名称
        $("#txt_FProCompanyName").bindSelect({
            url: "/BaseData/ZSJ_B1_GH_SI/GetGridJson?isProduct=1",
            id: "UnitNO",
            text: "UnitNOShortName"
        });
        //零件分类
        $("#txt_FProductionTypeName").bindSelect({//FClassNO ='01'
            url: "/VBaseData/V_BUS_SJ_Dictionary/GetSJ_DictionaryEntity",
            id: "FTypeNO",
            text: "UnitTypeNoName",
        });
        //显示台账日期
        var keyValue = $.request("keyValue");
        $.ajax({
            url: "/WareHouse/EnterWareHouse/GetInfoDocumentNum",
            data: { keyValue: keyValue },
            dataType: "json",
            async: false,
            success: function (data) {
                $("#form1").formSerialize(data);

                defaultDate = data;

                $(".txt_FAccountDate").val(data);
            }
        });

        console.log(defaultDate);
        //零件分类
        $("#FProductionTypeName").bindSelect({//FClassNO ='01'
            url: "/VBaseData/V_BUS_SJ_Dictionary/GetSJ_DictionaryEntity",
            id: "FTypeNO",
            text: "UnitTypeNoName",
        });

        //零件及分类查询
        $("#btnSearch").on("click", function () {
            var arr = "cates,parts".split(",");

            var idx = arr.indexOf($("[name=ra]:checked").val());

            1 == idx && (function () {
                var $gridList11 = $("#gridList11");

                $gridList11.jqGrid('setGridParam', {
                    postData: { faccountDate: $("#txt_FAccountDate1").val(), fproductionTypeNo: $("#txt_FProductionTypeName").val(), isCurrent: $("#txt_FAccountDate1").val() == defaultDate },
                }).trigger('reloadGrid');
            })();

            0 == idx && (function () {
                var $gridList1 = $("#gridList1");
                //faccountDate, string fproductionNo, string fproductionName, string fproCompanyNO, string fproductionTypeName
                $gridList1.jqGrid('setGridParam', {
                    postData: { faccountDate: $("#txt_FAccountDate1").val(), fproductionNo: $("#txt_fproductionNo").val(), fproductionName: $("#txt_FProductionName").val(), fproCompanyNO: $("#txt_FProCompanyName").val(), FProductionTypeNO: $("#txt_FProductionTypeName").val() },
                }).trigger('reloadGrid');
            })();
        });

        //仓库收发存汇总查询
        $("#btn_search2").on("click", function () {
            var $gridList2 = $("#gridList2");

            $gridList2.jqGrid('setGridParam', {
                postData: { fAccountDate: $("#txt_FAccountDate2").val() },
            }).trigger('reloadGrid');
        });
        //仓库收发综合报表查询
        $("#btn_search").on("click", function () {
            var $gridList3 = $("#gridList3");
            //fAccountDate, string fProductionNO, string fProductionName, string fProCompanyNO, string FProductionTypeNO
            $gridList3.jqGrid('setGridParam', {
                postData: { fAccountDate: $("#txt_FAccountDate3").val(), fProductionNO: $("#FProductionNO").val(), fProductionName: $("#FProductionName").val(), fProCompanyNO: $("#FProCompanyNO").val(), FProductionTypeNO: $("#FProductionTypeName").val() },
            }).trigger('reloadGrid');
        });

        $("#btn_calc").on("click", function () {
            $.loading(true, "正在计算中。。。请稍后！");
            var postData = {
                date: $("#txt_FAccountDate3").val(),
                isCurrent: defaultDate == $("#txt_FAccountDate3").val()
            };

            $.post("/VBaseData/V_CPK_A1_BB_StoProStockCata_RB/CalcStockCateSum", postData, function (res) {
                $.loading(false);

                0 < res && $("#btn_search").trigger("click");
            }, "json");
        });

    }

    function gridList() {
        var $gridList1 = $("#gridList1");

        $gridList1.dataGridForJson({
            url: "/VBaseData/V_CPK_44_MX_StoCPKListAcco_Mid_MX/GetGridJsonOrg",
            height: $(window).height() - 220,
            colModel: [
            { label: '零件分类', name: 'FProductionTypeName', width: 120, align: 'center', frozen: true },
            { label: '零件编号', name: 'FProductionNO', width: 120, align: 'left', frozen: true },
            { label: "零件名称", name: "FProductionName", width: 160, align: 'left' },
            { label: '单价(元)', name: 'Fprice_X', formatter: 'number', width: 120, align: 'right' },
            { label: '期初库存', name: 'FQuantity_QC', width: 80, align: 'right' },
            { label: '期初金额<br/>(元)', name: 'FQuantity_QCJE', formatter: 'number', width: 120, align: 'right' },
            { label: '入库数量', name: 'FQuantity_RK', width: 120, align: 'right' },
            { label: '入库金额<br/>(元)', name: 'FQuantity_RKJE', formatter: 'number', width: 120, align: 'right' },
            { label: '出库数量', name: 'FQuantity_CK', width: 120, align: 'right' },
            { label: '出库金额<br/>(元)', name: 'FQuantity_CKJE', formatter: 'number', width: 120, align: 'right' },
            { label: '废品数量', name: 'FQuantity_FP', width: 80, align: 'right' },
            { label: '废品金额<br/>(元)', name: 'FQuantity_FPJE', formatter: 'number', width: 80, align: 'right' },
            { label: '返修数量', name: 'FQuantity_FX', width: 80, align: 'right' },
            { label: '返修金额<br/>(元)', name: 'FQuantity_FXJE', formatter: 'number', width: 80, align: 'right' },
            { label: '盈亏数量', name: 'FQuantity_PC', width: 80, align: 'right' },
            { label: '盈亏金额<br/>(元)', name: 'FQuantity_PCJE', formatter: 'number', width: 80, align: 'right' },
            { label: '期末库存', name: 'FQuantity_JC', width: 120, align: 'right' },
            { label: '期末金额<br/>(元)', name: 'FQuantity_JCJE', formatter: 'number', width: 120, align: 'right' },
            { label: '制造单位', name: 'FProCompanyNO', width: 120, align: 'center' },
            { label: '制造单位名称', name: 'FProCompanyName', width: 60, align: 'left' }

            ],
            pager: "#gridPager1",
            sortname: 'FProductionNO asc,FProCompanyNO desc',
            viewrecords: true,
            rownumWidth: 50,
            onSelectRow: function (rowId) {
                rowData = $gridList1.jqGrid('getRowData', rowId);
                index = rowId;
                $.each(rowData, function (key, value) {
                    $("#txt" + key).val(value);
                });
            }
        });
        $gridList1.jqGrid('setFrozenColumns');

        var $gridList11 = $("#gridList11");

        $gridList11.dataGridForJson({
            url: "/VBaseData/V_CPK_44_MX_StoCPKListAcco_Mid_MX/GetGridJsonOrgCate",
            height: $(window).height() - 220,
            colModel: [
            { label: '零件分类', name: '零件分类', width: 120, align: 'center', frozen: true },
            { label: '期初库存', name: '期初库存', width: 120, align: 'right', frozen: true },
            { label: "期初金额", name: "期初金额", width: 120, align: 'right' },
            { label: '入库数量', name: '入库数量', width: 120, align: 'right' },
            { label: '入库金额', name: '入库金额', formatter: 'number', width: 120, align: 'right' },
            { label: '出库数量', name: '出库数量', width: 120, align: 'right' },
            { label: '出库金额', name: '出库金额', formatter: 'number', width: 120, align: 'right' },
            { label: '废品数量', name: '废品数量', width: 80, align: 'right' },
            { label: '废品金额', name: '废品金额', formatter: 'number', width: 80, align: 'right' },
            { label: '返修数量', name: '返修数量', width: 80, align: 'right' },
            { label: '返修金额', name: '返修金额', formatter: 'number', width: 80, align: 'right' },
            { label: '盈亏数量', name: '盈亏数量', width: 80, align: 'right' },
            { label: '盈亏金额', name: '盈亏金额', formatter: 'number', width: 80, align: 'right' },
            { label: '期末库存', name: '期末库存', width: 120, align: 'right' },
            { label: '期末金额', name: '期末金额', formatter: 'number', width: 120, align: 'right' },
            { label: '', name: '', width: $(window).width() - 1660, align: 'left' }
            ],
            postData: { faccountDate: $("#txt_FAccountDate1").val(), fproductionTypeNo: $("#txt_FProductionTypeName").val(), isCurrent: $("#txt_FAccountDate1").val() == defaultDate },
            pager: "#gridPager11",
            sortname: 'FProductionNO asc,FProCompanyNO desc',
            viewrecords: true,
            rownumWidth: 50,
            onSelectRow: function (rowId) {
                rowData = $gridList11.jqGrid('getRowData', rowId);
                index = rowId;
                $.each(rowData, function (key, value) {
                    $("#txt" + key).val(value);
                });
            }
        });

        $gridList11.jqGrid('setFrozenColumns');

        var $gridList2 = $("#gridList2");
        $gridList2.dataGridForJson({
            url: "/VBaseData/V_CPK_44_MX_StoCPKListAcco_Mid_HZ/GetGridJson",
            height: $(window).height() - 200,
            colModel: [
            { label: '路线类型', name: 'IsUnit', width: 100, align: 'center' },
            { label: '期初数量', name: 'FQuantity_QC', width: 120, align: 'right' },
            { label: "期初金额（元）", name: "FQuantity_QCJE", formatter: 'number', width: 120, align: 'right' },
            { label: '调整金额<br/>（元）', name: 'FQuantity_TZJE', width: 80, formatter: 'number', align: 'right' },
            { label: '入库数量', name: 'FQuantity_RK', width: 120, align: 'right' },
            { label: '入库金额（元）', name: 'FQuantity_RKJE', formatter: 'number', width: 120, align: 'right' },
            { label: '出库数量', name: 'FQuantity_CK', width: 120, align: 'right' },
            { label: '出库金额（元）', name: 'FQuantity_CKJE', formatter: 'number', width: 120, align: 'right' },
            { label: '废品数量', name: 'FQuantity_FP', width: 90, align: 'right' },
            { label: '废品金额（元）', name: 'FQuantity_FPJE', formatter: 'number', width: 90, align: 'right' },
            { label: '返修数量', name: 'FQuantity_FX', width: 90, align: 'right' },
            { label: '返修金额（元）', name: 'FQuantity_FXJE', formatter: 'number', width: 90, align: 'right' },
            { label: '盘存数量', name: 'FQuantity_PC', width: 120, align: 'right' },
            { label: '盘存金额（元）', name: 'FQuantity_PCJE', formatter: 'number', width: 120, align: 'right' },
            { label: '结存数量', name: 'FQuantity_JC', width: 120, align: 'right' },
            { label: '结存金额（元）', name: 'FQuantity_JCJE', formatter: 'number', width: 120, align: 'right' },
             { label: '', name: '', width: $(window).width() - 1840, align: 'left' }
            ],
            pager: "#gridPager2",
            sortname: 'FProductionTypeNO,FProductionNO',
            sortorder:"asc",
            viewrecords: true,
            rownumWidth: 50,
            onSelectRow: function (rowId) {
                rowData = $gridList2.jqGrid('getRowData', rowId);
                index = rowId;
                $.each(rowData, function (key, value) {
                    $("#txt" + key).val(value);
                });
            }
        });

        var $gridList3 = $("#gridList3");
        $gridList3.dataGridForJson({
            url: "/VBaseData/V_CPK_A1_BB_StoProStockCata_RB/GetGridJson",
            height: $(window).height() - 220,
            colModel: [
            { label: 'FAccountDate', name: 'FAccountDate', width: 60, align: 'right', hidden: true, frozen: true },
            { label: '零件编号', name: 'FProductionNO', width: 100, align: 'left', frozen: true },
            { label: '零件名称', name: 'FProductionName', width: 160, align: 'left', frozen: true },
            { label: '结存<br/>数量', name: 'JCSL', width: 40, align: 'right' },
            { label: '期初<br/>数量', name: 'QCSL', width: 40, align: 'right' },
            { label: '01日<br/>入库', name: 'RK01', width: 40, align: 'right' },
            { label: '02日<br/>入库', name: 'RK02', width: 40, align: 'right' },
            { label: '03日<br/>入库', name: 'RK03', width: 40, align: 'right' },
            { label: '04日<br/>入库', name: 'RK04', width: 40, align: 'right' },
            { label: '05日<br/>入库', name: 'RK05', width: 40, align: 'right' },
            { label: '06日<br/>入库', name: 'RK06', width: 40, align: 'right' },
            { label: '07日<br/>入库', name: 'RK07', width: 40, align: 'right' },
            { label: '08日<br/>入库', name: 'RK08', width: 40, align: 'right' },
            { label: '09日<br/>入库', name: 'RK09', width: 40, align: 'right' },
            { label: '10日<br/>入库', name: 'RK10', width: 40, align: 'right' },
            { label: '11日<br/>入库', name: 'RK11', width: 40, align: 'right' },
            { label: '12日<br/>入库', name: 'RK12', width: 40, align: 'right' },
            { label: '13日<br/>入库', name: 'RK13', width: 40, align: 'right' },
            { label: '14日<br/>入库', name: 'RK14', width: 40, align: 'right' },
            { label: '15日<br/>入库', name: 'RK15', width: 40, align: 'right' },
            { label: '16日<br/>入库', name: 'RK16', width: 40, align: 'right' },
            { label: '17日<br/>入库', name: 'RK17', width: 40, align: 'right' },
            { label: '18日<br/>入库', name: 'RK18', width: 40, align: 'right' },
            { label: '19日<br/>入库', name: 'RK19', width: 40, align: 'right' },
            { label: '20日<br/>入库', name: 'RK20', width: 40, align: 'right' },
            { label: '21日<br/>入库', name: 'RK21', width: 40, align: 'right' },
            { label: '22日<br/>入库', name: 'RK22', width: 40, align: 'right' },
            { label: '23日<br/>入库', name: 'RK23', width: 40, align: 'right' },
            { label: '24日<br/>入库', name: 'RK24', width: 40, align: 'right' },
            { label: '25日<br/>入库', name: 'RK25', width: 40, align: 'right' },
            { label: '26日<br/>入库', name: 'RK26', width: 40, align: 'right' },
            { label: '27日<br/>入库', name: 'RK27', width: 40, align: 'right' },
            { label: '28日<br/>入库', name: 'RK28', width: 40, align: 'right' },
            { label: '29日<br/>入库', name: 'RK29', width: 40, align: 'right' },
            { label: '30日<br/>入库', name: 'RK30', width: 40, align: 'right' },
            { label: '31日<br/>入库', name: 'RK31', width: 40, align: 'right' },
            { label: '入库汇总', name: 'RKHZ', width: 60, align: 'left' },
            { label: '01日<br/>入库', name: 'CK01', width: 40, align: 'right' },
            { label: '02日<br/>入库', name: 'CK02', width: 40, align: 'right' },
            { label: '03日<br/>入库', name: 'CK03', width: 40, align: 'right' },
            { label: '04日<br/>入库', name: 'CK04', width: 40, align: 'right' },
            { label: '05日<br/>入库', name: 'CK05', width: 40, align: 'right' },
            { label: '06日<br/>入库', name: 'CK06', width: 40, align: 'right' },
            { label: '07日<br/>入库', name: 'CK07', width: 40, align: 'right' },
            { label: '08日<br/>入库', name: 'CK08', width: 40, align: 'right' },
            { label: '09日<br/>入库', name: 'CK09', width: 40, align: 'right' },
            { label: '10日<br/>入库', name: 'CK10', width: 40, align: 'right' },
            { label: '11日<br/>入库', name: 'CK11', width: 40, align: 'right' },
            { label: '12日<br/>入库', name: 'CK12', width: 40, align: 'right' },
            { label: '13日<br/>入库', name: 'CK13', width: 40, align: 'right' },
            { label: '14日<br/>入库', name: 'CK14', width: 40, align: 'right' },
            { label: '15日<br/>入库', name: 'CK15', width: 40, align: 'right' },
            { label: '16日<br/>入库', name: 'CK16', width: 40, align: 'right' },
            { label: '17日<br/>入库', name: 'CK17', width: 40, align: 'right' },
            { label: '18日<br/>入库', name: 'CK18', width: 40, align: 'right' },
            { label: '19日<br/>入库', name: 'CK19', width: 40, align: 'right' },
            { label: '20日<br/>入库', name: 'CK20', width: 40, align: 'right' },
            { label: '21日<br/>入库', name: 'CK21', width: 40, align: 'right' },
            { label: '22日<br/>入库', name: 'CK22', width: 40, align: 'right' },
            { label: '23日<br/>入库', name: 'CK23', width: 40, align: 'right' },
            { label: '24日<br/>入库', name: 'CK24', width: 40, align: 'right' },
            { label: '25日<br/>入库', name: 'CK25', width: 40, align: 'right' },
            { label: '26日<br/>入库', name: 'CK26', width: 40, align: 'right' },
            { label: '27日<br/>入库', name: 'CK27', width: 40, align: 'right' },
            { label: '28日<br/>入库', name: 'CK28', width: 40, align: 'right' },
            { label: '29日<br/>入库', name: 'CK29', width: 40, align: 'right' },
            { label: '30日<br/>入库', name: 'CK30', width: 40, align: 'right' },
            { label: '31日<br/>入库', name: 'CK31', width: 40, align: 'right' },
            { label: '出库<br/>汇总', name: 'CKHZ', width: 40, align: 'right' },
            { label: '返修<br/>数量', name: 'FXSL', width: 40, align: 'right' },
            { label: '废品<br/>数量', name: 'FPSL', width: 40, align: 'right' },
            { label: '盘存<br/>数量', name: 'PCSL', width: 40, align: 'right' },
            { label: '零件类型编码', name: 'FProductionTypeNO', width: 60, align: 'left', hidden: true },
            { label: "制造单位编码", name: "FProCompanyNO", width: 120, align: 'center' },
            { label: '制造单位名称', name: 'FProCompanyName', width: 120, align: 'left' },
            { label: '零件分类', name: 'FProductionTypeName', width: 80, align: 'left' }
            ],
            pager: "#gridPager3",
            sortname: 'FProductionNO asc,FProCompanyNO desc',
            viewrecords: true,
            rownumWidth: 50,
            onSelectRow: function (rowId) {
                rowData = $gridList3.jqGrid('getRowData', rowId);
                index = rowId;
                $.each(rowData, function (key, value) {
                    $("#txt" + key).val(value);
                });
            }
        });
        $gridList3.jqGrid('setFrozenColumns');
    }
</script>
<div class="layout" id="layout" style="height: 100%; width: 100%;">
    <div id="showTable" class="ui-layout-center ">
        <div style="padding: 5px 5px;" class="line-table">
            <ul id="myTab" class="nav nav-tabs" style="">
                <li class="active"><a href="#SaleStatisticsInfo" data-toggle="tab">分类收发存报表</a></li>
                <li><a href="#InputInfoInfo" data-toggle="tab">仓库收发存汇总</a></li>
                <li><a href="#InputStatisticsInfo" data-toggle="tab">仓库收发综合报表</a></li>
            </ul>
            <div id="myTabContent" class="tab-content" style="margin-top: 5px;">
                <div class="tab-pane fade in active" id="SaleStatisticsInfo">
                    <div class="tool_c">
                        <div class="cate_item">
                            <div class="btn-group" style="margin-top: 0px;">
                                <input type="radio" id="ra2" value="parts" name="ra" /><label for="ra2">分类汇总</label><br />
                                <input type="radio" id="ra1" value="cates" name="ra" /><label for="ra1">零件汇总</label>
                            </div>
                        </div>
                        <div class="cate_item">
                            <div class="cp cp1 btn-group" style="margin-top: 0px; ">
                                台账日期<br />
                                <input id="txt_FAccountDate1" name="text" type="text" class="form-control txt_FAccountDate required input-wdatepicker input-width-105" onfocus="WdatePicker({ dateFmt: 'yyyyMM', isShowToday: false, isShowClear: false });" />
                                &nbsp;
                            </div>
                            <div class="btn-group " style="margin-top: 0px;">
                                <div class="cp cp2  input-width-105">
                                    零件分类<br />
                                    <select id="txt_FProductionTypeName" name="">
                                        <option value="" style="width: 80px;">==请选择==</option>
                                    </select>
                                </div>
                            </div>
                            <div class="cp cp3 btn-group" style="margin-top: 0px;">
                                零件编号<br />
                                <input id="txt_fproductionNo" name="" placeholder="" type="text" class="form-control required input-width-105" />
                            </div>
                            <div class="cp cp4 btn-group" style="margin-top: 0px;">
                                零件名称<br />
                                <input id="txt_FProductionName" name="" placeholder="" type="text" class="form-control required input-width-140" />
                            </div>
                            <div class="cp cp5 btn-group " style="margin-top: 0px;">
                                <div class="input-width-185">
                                    制造单位<br />
                                    <select id="txt_FProCompanyName" name="">
                                        <option value="" style="width: 80px;">==请选择==</option>
                                    </select>
                                </div>
                            </div>
                            <div class="btn-group" style="margin-top: 0; margin-left: 10px;">
                                <a id="btnSearch" class="btn btn-primary center-block"><span class="glyphicon glyphicon-search"></span>&nbsp; 查询</a>
                                <a class="btn btn-primary center-block" onclick=""><span class="glyphicon glyphicon-refresh"></span>&nbsp刷新</a>
                                <a class="btn btn-primary center-block" onclick="btn_Print()"><span class="glyphicon glyphicon-print"></span>&nbsp打印</a>
                                <a class="btn btn-primary center-block" onclick="btn_Excel()"><span class="glyphicon glyphicon-download"></span>&nbsp导出</a>
                            </div>
                        </div>
                    </div>
                    <div id="selCate" class="cp cp6" style="margin-top: 5px;">
                        <table id="gridList1"></table>
                        <div id="gridPager1"></div>
                    </div>
                    <div id="selParts" class="cp cp7" style="margin-top: 5px; display: none;">
                        <table id="gridList11"></table>
                        <div id="gridPager11"></div>
                    </div>
                </div>
                <div class="tab-pane fade" id="InputInfoInfo">
                    <div class="tool_c">
                        <div class="btn-group" style="margin-top: 0;">
                            &nbsp;台账日期<br />
                            <input id="txt_FAccountDate2" name="text" type="text" class="form-control txt_FAccountDate required input-wdatepicker input-width-105" onfocus="WdatePicker({ dateFmt: 'yyyyMM', isShowToday: false, isShowClear: false });" />
                        </div>
                        <div class="btn-group" style="margin-top: 0; ">
                            <a id="btn_search2" class="btn btn-primary center-block" onclick=""><span class="glyphicon glyphicon-search"></span>查询</a>
                            <a class="btn btn-primary center-block" onclick=""><span class="glyphicon glyphicon-refresh"></span>&nbsp刷新</a>
                            <a class="btn btn-primary center-block" onclick="btn_Print()"><span class="glyphicon glyphicon-print"></span>&nbsp打印</a>
                            <a class="btn btn-primary center-block" onclick="btn_Excel()"><span class="glyphicon glyphicon-download"></span>&nbsp导出</a>
                        </div>
                    </div>
                    <div style="margin-top: 5px;">
                        <table id="gridList2"></table>
                        <div id="gridPager2"></div>
                    </div>
                </div>
                <div class="tab-pane fade" id="InputStatisticsInfo">
                    <div class="tool_c">
                        <div class="btn-group" style="margin-top: 0px; ">
                            &nbsp;台账日期<br />
                            <input id="txt_FAccountDate3" name="text" type="text" class="form-control txt_FAccountDate required input-wdatepicker input-width-105" onfocus="WdatePicker({ dateFmt: 'yyyyMM', isShowToday: false, isShowClear: false });" />
                        </div>
                        <div class="btn-group" style="margin-top: 0px;">
                            &nbsp;零件编号<br />
                            <input id="FProductionNO" name="" placeholder="" type="text" class="form-control required input-width-105" />
                        </div>
                        <div class="btn-group" style="margin-top: 0px;">
                            &nbsp;零件名称<br />
                            <input id="FProductionName" name="" placeholder="" type="text" class="form-control required input-width-140" />
                        </div>
                        <div class="btn-group input-width-185" style="margin-top: 0px;">
                                &nbsp;制造单位<br />
                                <select id="FProCompanyNO" name="">
                                    <option value="">==请选择==</option>
                                </select>
                        </div>
                        <div class="btn-group input-width-105">
                            &nbsp;零件分类<br />
                            <select id="FProductionTypeName" name="F_DutyId21" class="form-control input-width-140" style="width: 80px;">
                                <option value="" class="required ">==请选择==</option>
                            </select>
                        </div>
                        <div class="btn-group">
                            <a id="btn_search" class="btn btn-primary center-block"><span class="glyphicon glyphicon-search"></span>查询</a>
                            
                            <a class="btn btn-primary center-block" onclick=""><span class="glyphicon glyphicon-refresh"></span>&nbsp刷新</a>
                            <a id="btn_calc" class="btn btn-primary center-block"><span class="glyphicon glyphicon-check"></span>计算</a>
                            <a class="btn btn-primary center-block" onclick="btn_Excel()"><span class="glyphicon glyphicon-download"></span>&nbsp导出</a>
                        </div>
                    </div>
                    <div class="grid_list_2_c" style="margin-top: 5px;">
                        <table id="gridList3"></table>
                        <div id="gridPager3"></div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>







